<!doctype html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="apple-touch-fullscreen" content="yes">
  <meta name="format-detection" content="telephone=no,address=no">
  <meta name="apple-mobile-web-app-status-bar-style" content="white">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <title>{$record.name}的紫微参数</title>
  <link rel="stylesheet" href="/static/ziwei/css/detail.css">
</head>
<body>
<div id="ziwei-detail">
  <div class="record-info">
    <div class="line sex"><span class="title">{if $record.type == 1}男{else}女{/if}</span></div>
    <div class="line birthtime">{$record.year}年{$record.month}月{$record.day}日 {$record.hour}时{$record.minute}分</div>
    <div class="line timezone">{$record.timezone_text} GMT{if $record.timezone>=0}+{/if}{$record.timezone}</div>
    <div class="line birth_place"><span class="title">出生于</span>{if $record.birth_country!==$record.birth_province}{$record.birth_country} {/if}{$record.birth_province} {$record.birth_city}</div>
    <div class="line long_lat">{if $record.ew>0}E{else}W{/if}{$record.long_deg}˚{$record.long_min}' {if
      $record.ns>0}N{else}S{/if}{$record.lat_deg}˚{$record.lat_min}'
    </div>
    <div class="line live_place"><span class="title">现居地</span>{if $record.live_country!==$record.live_province}{$record.live_country} {/if}{$record.live_province} {$record.live_city}</div>
    <div class="line astro">{$record.astro}</div>
  </div>
  <table cellpadding="0" cellspacing="0" class="table tablle1">
    <thead>
    <tr>
      <th>星耀</th>
      <th>落宫</th>
      <th>宫干支</th>
      <th>属性</th>
      <th>四化</th>
      <th>状态</th>
    </tr>
    </thead>
    <tbody>
    {foreach $xing as $k1 => $v1}
    <tr>
      <td class="">{$v1.name}</td>
      <td class="">{$v1.gong_text}</td>
      <td class="">{$v1.gan_text}{$v1.dizhi_text}</td>
      <td class="">{$v1.shuxing}</td>
      <td class="">{if $v1.sihua==='禄'}<span class="sihua lu">禄</span>{elseif $v1.sihua==='权'}<span class="sihua quan">权</span>{elseif
        $v1.sihua==='科'}<span class="sihua ke">科</span>{elseif $v1.sihua==='忌'}<span class="sihua ji">忌</span>{else}{$v1.sihua}{/if}
      </td>
      <td class="">{$v1.zhuangtai}</td>
    </tr>
    {/foreach}
    </tbody>
  </table>
  <table cellpadding="0" cellspacing="0" class="table tablle2">
    <thead>
    <tr>
      <th>宫位</th>
      <th>星耀</th>
      <th>地支</th>
    </tr>
    </thead>
    <tbody>
    {foreach $gong as $k2 => $v2}
    <tr>
      <td>{$v2.name}</td>
      <td>
        {foreach $v2.xing_list as $k3 => $v3}
        <div class="star">{$v3}</div>
        {/foreach}
      </td>
      <td>{$v2.dizhi_text}</td>
    </tr>
    {/foreach}
    </tbody>
  </table>

</div>
</body>
</html>
